home *** CD-ROM | disk | FTP | other *** search
- Path: bmtlh10.bnr.ca!news
- From: John Hickin <hickin@bnr.ca>
- Newsgroups: comp.lang.c++,gnu.g++.help
- Subject: Re: Unable to compile inline functions
- Date: 2 Apr 1996 21:35:36 GMT
- Organization: Bell Northern Research
- Message-ID: <4js6j8$7p3@bmtlh10.bnr.ca>
- References: <4js108$pm4@ncar.ucar.edu>
- NNTP-Posting-Host: bmtlh520.bnr.ca
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1 (X11; I; HP-UX A.09.05 9000/715)
- X-URL: news:4js108$pm4@ncar.ucar.edu
-
- Your inlines should appear in a public header file.
- The class header is an ideal place. You can put them outside the class
- definition at the bottom of the file. This way you don't pollute the
- interface with implementation details and, more importantly, you can roll
- out the inline definitions in the 'best' order which means inlines that
- use inlines come after the ones they depend on. This isn't required by
- C++ but some versions of g++, for example, does a lot better if you do
- this than if you don't.
-
- --
- John Hickin Nortel Technology, Montreal, Quebec
- (514) 765-7924 hickin@nortel.ca
-
-